<form id="tambah" name="tambah" method="post" action="<?php echo site_url().'peminjaman/insert_temp_pinjam'?>">
<input type="hidden" name="id_member" value="<?php echo $id_member ?>">
<table width="342" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="118">Nim</td>
    <td width="208"><?php echo $row->nim; ?></td>
  </tr>
  <tr>
    <td>Nama Mahasiswa</td>
    <td><?php echo $row->nama; ?></td>
  </tr>
  <tr>
    <td>Judul</td>
    <td><?php echo bukuDropdown() ?></td>
  </tr>
  <tr>
    <td>Tgl Pinjam</td>
    <td>
	<?php echo form_error('tgl'); ?>
	<input type="text" name="tgl" id="tgl" value="<?php echo $tgl;?>" readonly></td>
  </tr>
    <tr>
    <td></td>
    <td><input type="submit" name="pilih" id="pilih" value="Pilih"></td>
  </tr>
</table>
</form>
<form id="tambah" name="tambah" method="post" action="<?php echo site_url().'peminjaman/simpan'?>">
<?php echo form_error('id_member'); ?><input type="hidden" name="id_member" value="<?php echo $id_member ?>">
<?php echo form_error('tgl'); ?><input type="hidden" name="tgl" value="<?php echo $tgl;?>">
<table width="638" border="0" cellpadding="0" cellspacing="0" class="table">
  <tr>
    <th width="50">No</th>
	<th width="327">NIM</th>
    <th width="327">Nama</th>
    <th width="261">Judul</th>
    
   
  </tr>
<?php $i=1;

foreach ($query as $row){ ?>
  <tr class="<?php if ($i  %2 == 0 ) echo 'zebra' ?>">
    <td><?php echo $i ?></td>
	<td><?php echo $row['nim'] ?></td>
    <td><?php echo $row['nama'] ?></td>
	
    <td><?php echo $row['judul'] ?></td>
   
    
  </tr>
 <?php $i++;
}
?> 
 
  <tr>
    <td></td>
    <td></td>
    <td></td>
    
    
  </tr>

</table>
<input type="submit" name="simpan" id="simpan" value="Simpan">
</form>